***** Description *****
This replication archive contains all data and code to replicate the figures and
results in "Are Parties Equally Responsive to Women and Men?" by Jonathan Homola.



***** File Overview *****
** R scripts **
Homola_WomenMenResponsiveness_Analysis.R -- R script to generate the main results
in the manuscript (Tables 2-4)

Homola_WomenMenResponsiveness_Appendix.R -- R script to generate the additional 
tables in the Appendix (Tables A4-A20)

Homola_WomenMenResponsiveness_Figures.R -- R script to generate Figures 1, and A1-A7

Homola_WomenMenResponsiveness_interactions.R -- R script to generate the interaction
plots in Figure A5. The code is originally written by Anton Strezhnev ("Two-variable 
interaction plots in R"). I have made some very minor adjustments. See:
http://causalloop.blogspot.com/2013/06/marginal-effect-plots-for-interaction.html

Homola_WomenMenResponsiveness_hmx.R -- R script to generate the additional interaction
plots in Figures A6-A7. This code is part of the Hainmueller et al. paper. I have made
a number of minor adjustments, mainly to allow for more detailed labeling options and
the possibility to combine multiple plots into one. See:
http://yiqingxu.org/software.html#interplot


** Data files **
Homola_WomenMenResponsiveness_Data.dta -- The main dataset contains information on 
party positions and shifts (from the Manifesto project), women's and men's preferences
and preference shifts (from the Eurobarometer surveys), and female seat shares in
national parliaments. This dataset is needed to create most Tables and Figures.

Homola_WomenMenResponsiveness_DataLR.csv -- The "Left-Right self-placements" dataset
contains information on the average left-right self-placements of women and men across
the 12 countries. It also contains the average self-placements of left-leaning and
right-leaning women and men. This dataset is needed to create Figures 1, and A2-A4.

Homola_WomenMenResponsiveness_DataWparl.dta -- The "Women in parliaments" dataset
contains information on the percentage of women in national parliaments (by the end
of the corresponding calendar year). This dataset is needed to create Figure A1.



***** Additional Information *****
The following R packages were used to produce the results:
1) foreign version 0.8-67
2) sandwich version 2.3-4
3) psych version 1.6.9
4) stargazer version 5.2
5) plyr version 1.8.3
6) ggplot2 version 2.2.0
7) cowplot version 0.6.2
8) mgcv version 1.8-6
9) np version 0.60-2
10) gridExtra version 2.2.1
11) Lmoments version 1.2-3

** Note **
The descriptive statistics provided in Tables 1, and A1-A3 are based on an updated
Eurobarometer Trendfile with over 1.3 million observations. The dataset and code
necessary to generate these tables is not included in this set of replication files
but is instead available from me upon request.



***** References *****
Hainmueller, Jens, Jonathan Mummolo, and Yiqing Xu. 2016. "How Much Should We
Trust Estimates from Multiplicative Interaction Models? Simple Tools to Improve
Empirical Practice." Presented at the Annual Meeting of the Society for Political
Methodology, Houston, TX.

Homola, Jonathan. "Are Parties Equally Responsive to Women and Men?" British Journal 
of Political Science.